import 'package:flutter/material.dart';
import 'package:video_plugin/BmsVideoPlayer.dart';
import 'package:video_plugin/video_plugin.dart';

import 'EasyFresh.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
   VideoPlayerController controller;
  String url;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body:new Container(
          child: new PlatformEasyFresh(),
        )
      ),
    );
  }
void _onSubmitted(value){
      url=value;
}
  void _onPressed(){
    VideoPlayerController.play(url);
  }
}


//new SingleChildScrollView(
//child:  Center(
//child:Column(
//children: <Widget>[
//new Container(
//height: 300,
//child:  BmsVideoPlayer(url),
//),
//new Text("请在下方输入视频地址"),
//new TextField(
//onChanged:_onSubmitted ,
//),
//new FlatButton(onPressed: _onPressed, child: new Text("点击播放"))
//],
//)
//),
//)